package com.ym.datasource;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * Description
 * Created by 王伟
 * Date create on 21:17 2018/6/20.
 */
public class DataSourceSwitcher extends AbstractRoutingDataSource {
    @Override
    protected Object determineCurrentLookupKey() {
        return DataSourceContextHolder.getDataSourceType();
    }
}
